//先去localStorage中找UUID 如果有就使用 如果没有重新生成
//重新生成UUID 生成完要放到localStorage中
import { v4 as uuidv4 } from 'uuid';
export const getUUID = ()=>{
    let UUID = window.localStorage.getItem("shp_uuid")
    if(!UUID){
        //重新生成UUID 生成完要放到localStorage中
        UUID = uuidv4()
        window.localStorage.setItem("shp_uuid",UUID)
    }
    return UUID
}